﻿.icon-picker {
    width: 100%;
    position: relative;
}

    .icon-picker .dropdown-menu-toggle {
        border: solid 1px #ddd;
        border-radius: var(--bs-border-radius);
        cursor: pointer;
        min-height: 35px;
        max-height: 70px;
        overflow: auto;
    }

        .icon-picker .dropdown-menu-toggle.disabled {
            background-color: #eee;
        }

        .icon-picker .dropdown-menu-toggle .clear {
            padding: 7px 0.25rem;
            display: none;
            color: #adb5bd;
        }

            .icon-picker .dropdown-menu-toggle .clear:hover {
                background-color: #ddd;
                border-radius: var(--bs-border-radius);
            }

        .icon-picker .dropdown-menu-toggle .dropdown {
            padding: 7px 0.25rem;
            display: block;
        }

        .icon-picker .dropdown-menu-toggle.selected .clear {
            display: block;
        }

        .icon-picker .dropdown-menu-toggle.selected .dropdown,
        .icon-picker .dropdown-menu-toggle.disabled .clear {
            display: none;
        }

        .icon-picker .dropdown-menu-toggle .append {
            position: absolute;
            height: 100%;
            width: 30px;
            right: 0;
            top: 0;
            color: #c0c4cc;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .icon-picker .dropdown-menu-toggle .append .dropdown {
                transition: all .3s;
                transform: rotate(180deg);
            }

    .icon-picker.show .dropdown-menu-toggle .append .dropdown {
        transform: rotate(0);
    }

    .icon-picker .dropdown-menu {
        max-height: 300px;
        overflow: auto;
    }

    .icon-picker .icon-picker-items {
        display: flex;
        flex-wrap: wrap;
        padding-top: 3px;
        padding-left: 3px;
        position: relative;
        max-width: none;
    }

        .icon-picker .icon-picker-items span {
            border: solid 1px #ddd;
            border-radius: var(--bs-border-radius);
            padding: 2px 6px;
            background-color: #e9ecef;
            margin-bottom: 3px;
        }

        .icon-picker .icon-picker-items .icon-picker-item {
            display: inline-block;
            max-width: 130px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            margin-right: 3px;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .icon-picker .icon-picker-items .icon-picker-item-group {
            display: inline-flex;
            position: relative;
        }

            .icon-picker .icon-picker-items .icon-picker-item-group .icon-picker-item {
                padding-left: 9px;
            }

        .icon-picker .icon-picker-items .icon-picker-close {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            margin-right: -3px;
            z-index: 2;
            transition: color .3s linear, background-color .3s linear;
        }

    .icon-picker :not(.disabled) .icon-picker-items .icon-picker-close:hover {
        color: #333;
        background-color: #ddd;
    }

    .icon-picker .dropdown-menu {
        margin-top: 10px;
        padding: 0.25rem 0;
        width: 100%;
    }

        .icon-picker .dropdown-menu .toolbar {
            padding: 6px 10px;
            white-space: nowrap;
        }

            .icon-picker .dropdown-menu .toolbar .btn {
                line-height: 12px;
                padding: 7px 15px;
                border: 1px solid #dee2e6;
                transition: border-color .3s linear, color .3s linear;
            }

                .icon-picker .dropdown-menu .toolbar .btn:hover {
                    border-color: #409eff;
                    color: #409eff;
                }

                .icon-picker .dropdown-menu .toolbar .btn:not(:last-child) {
                    margin-right: 1rem;
                }

        .icon-picker .dropdown-menu .search {
            padding: 7px 10px;
            position: relative;
        }

            .icon-picker .dropdown-menu .search .search-text {
                width: 100%;
                padding-right: 60px;
            }

            .icon-picker .dropdown-menu .search .fa-search {
                position: absolute;
                left: calc(100% - 64px);
                top: 18px;
                color: #adb5bd;
            }

            .icon-picker .dropdown-menu .search .fa-trash {
                position: absolute;
                left: calc(100% - 34px);
                top: 18px;
                color: #adb5bd;
            }

    .icon-picker .dropdown-item {
        display: flex;
        padding: 0 10px;
        align-items: center;
        transition: all .3s linear;
    }

        .icon-picker .dropdown-item.active {
            background-color: #dee2e6;
            color: inherit;
        }

        .icon-picker .dropdown-item:hover {
            background-color: #6fd6e6;
        }

        .icon-picker .dropdown-item > span {
            padding: 0.375rem 0.75rem;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .icon-picker .dropdown-item .checkbox-label {
            display: none;
        }

    .icon-picker.show .dropdown-menu,
    .icon-picker.show .dropdown-menu-arrow {
        display: block;
    }

    .icon-picker .icon-picker-ph {
        padding: 0 1rem;
        color: #c0c4cc;
        line-height: 35px;
        position: absolute;
    }

    .icon-picker .dropdown-item .form-label {
        display: none;
    }

    .icon-picker .dropdown-item .form-check {
        width: auto;
    }

    .icon-picker .dropdown-item:hover {
        background-color: #f1faff;
    }

    .icon-picker .listview {
        max-height:240px;
    }

    .icon-picker .listview-body {
        padding-top: 0 !important;
    }

    .icon-picker .listview-item {
        margin: 0 !important;
    }
    .icon-picker .card {
        width: 40px;
        height: 40px;
    }
    .icon-picker .card-body {
        padding: 0.5rem;
    }

    .icon-picker .card-body.fa {
        font-size: 1.5rem;
        font-weight: bolder;
    }